home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 33
/
Volume 33 - JOGO DISK .iso
/
Games
/
protect_the_fire.swf
/
scripts
/
DefineSprite_279
/
frame_2
/
DoAction.as
Wrap
Text File
|
2007-01-15
|
651b
|
21 lines
nutx = getProperty("../nut", _X);
nuty = getProperty("../nut", _Y);
tarx = getProperty("../pline", _X) - getProperty("../pline", _width);
if(getProperty("../pline", _rotation) < "0")
{
tary = getProperty("../pline", _Y) + getProperty("../pline", _height);
}
else
{
tary = getProperty("../pline", _Y) - getProperty("../pline", _height);
}
setProperty("../nut", _xscale, "120");
setProperty("../nut", _yscale, "120");
fcount = int(getProperty("../pline", _currentframe) / "5") + "2";
trace(fcount);
deltax = (tarx - nutx) / fcount;
deltay = (tary - nuty) / fcount;
fhalf = int(fcount / "2");
inc = fhalf * "5";
gotoAndPlay(3);